package pta.MOOC.ch02.ex13;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String studentId = scanner.nextLine().trim();
        if(studentId.length() != 8|| !studentId.matches(("\\d+"))){
            System.out.println(("Wrong Format"));
            return;
        }
        String collegeCode = studentId.substring(2, 4);
        String college;
        switch(collegeCode){
            case "01":
                college = "材料学院";
                break;
            case "02":
                college = "机械学院";
                break;
            case "03":
                college = "外语学院";
                break;
            case  "20":
                college = "软件学院";
                break;
            default:
                System.out.println(("Wrong Format"));
                return;
        }
        String year = "20" + studentId.substring(0, 2) + "年";
        String classNumber = studentId.substring(4, 6);
        String studentNumber = studentId.substring(6, 8);
        System.out.println("入学年份：" + year);
        System.out.println("学院：" + college);
        System.out.println("班级：" + classNumber);
        System.out.println("学号：" + studentNumber);

        scanner.close();
    }
}
